package com.geekca.d8.studentinfo;

public class Student {
    String stuNum;
    String stuName;
    int stuAge;
    String stuClass;

    public Student(String stuNum, String stuName, int stuAge, String stuClass) {
        this.stuNum = stuNum;
        this.stuName = stuName;
        this.stuAge = stuAge;
        this.stuClass = stuClass;
    }

    public String getStuNum() {
        return stuNum;
    }

    public void setStuNum(String stuNum) {
        this.stuNum = stuNum;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getStuAge() {
        return stuAge;
    }

    public void setStuAge(int stuAge) {
        this.stuAge = stuAge;
    }

    public String getStuClass() {
        return stuClass;
    }

    public void setStuClass(String stuClass) {
        this.stuClass = stuClass;
    }

    @Override
    public String toString() {
        return "学生信息: [" +
                "学号='" + stuNum + '\'' +
                ", 姓名='" + stuName + '\'' +
                ", 年龄=" + stuAge +
                ", 班级='" + stuClass + '\'' +
                ']';
    }
}
